/*
 * @Author: your name
 * @Date: 2021-04-14 14:38:38
 * @LastEditTime: 2021-04-14 14:41:15
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /flutter_demo/lib/pages/Product.dart
 */
import 'package:flutter/material.dart';

class ProductPage extends StatefulWidget {
  @override
  _ProductPageState createState() => _ProductPageState();
}

class _ProductPageState extends State<ProductPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('商品'),
      ),
      body: Column(
        children: <Widget>[
          ElevatedButton(
              onPressed: () {
                Navigator.pushNamed(context, '/productInfo',
                    arguments: {'id': 'zxc213'});
              },
              child: Text('跳转到商品详情'))
        ],
      ),
    );
  }
}
